html,body
  font 14px/1.5 Helvetica, arial, sans-serif
  margin 0
  padding 0
  height 100%

con()
  content ""
  display: block
  position: absolute;
  background: #39f


.scene
  position relative
  width 800px
  height 600px
  margin: 60px auto 10px
  background: #eee

.clipper_content
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: crosshair;

  .clipper_mask
    position absolute
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.8);
    pointer-events: none;
  .clipper_image
    position: absolute
    opacity .4

  .clipper_control
    display: none;
    position absolute
    top 0
    left 0

    i
      display: block;
      position: absolute;

    .cli_inner
      position absolute
      width: 100%
      height 100%
      cursor: all-scroll;

  .cli_view
    position: absolute;
    width 100%
    height 100%
    top: 0
    left 0
    overflow hidden
    outline: 1px solid #39f;
    pointer-events: none;
  .cli_view_img
    position: absolute;

  .cli_top
    top: 0;
    left 0
    right 0
    height 10px
    cursor: ns-resize;

  .cli_right
    top 0
    right 0
    bottom 0
    width: 10px
    cursor: ew-resize;

  .cli_bottom
    bottom: 0
    left 0
    right 0
    height 10px
    cursor: ns-resize;

  .cli_left
    top 0
    left 0
    bottom: 0
    width: 10px
    cursor: ew-resize;

  .cli_p_1
  .cli_p_2
  .cli_p_3
  .cli_p_4
    width 14px
    height 14px
    z-index 5
    &:before
      con()
      width: 5px
      height 5px

  .cli_p_1
    top 0
    left 0
    cursor: nwse-resize;
    &:before
      top: -3px
      left -3px
  .cli_p_2
    top 0
    right 0
    cursor: nesw-resize;
    &:before
      top: -3px
      right -3px
  .cli_p_3
    right 0
    bottom: 0
    cursor: nwse-resize;
    &:before
      bottom: -3px
      right -3px
  .cli_p_4
    left 0
    bottom: 0
    cursor: nesw-resize;
    &:before
      bottom: -3px
      left -3px

  .cli_center
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    opacity: .75;
    &:before
    &:after
      position: absolute;
      display: block;
      content: " ";
      background-color: #888;
    &:before
      top: 0;
      left: -3px;
      width: 7px;
      height: 1px;
    &:after
      top: -3px;
      left: 0;
      width: 1px;
      height: 7px;

.cli_num
  position: absolute;
  top: 100%;
  margin-top: 5px;
  font-size: 12px;
  color: #fff;
  font-weight: 100;
  line-height: 1;
  white-space: nowrap;
  transform: scale(.9);
  transform-origin: left center;

.cli_keyboard
  position: absolute;
  bottom: 100%;
  right: 0;
  height: 30px;
  background: rgba(0, 0,0, .6);
  margin-bottom: 6px;
  border-radius: 2px;
  cursor pointer
  padding: 0 4px;
  text-align: right
  font-size 0
  white-space: nowrap;

.cli_btn
  font-size: 12px;
  color: #fff;
  line-height: 30px;
  padding: 0 5px;
  opacity: .8;
  font-weight: 400;
  user-select: none;

.cli_cancel
  width: 26px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M960 154.24L869.76 64 512 421.76 154.24 64 64 154.24 421.76 512 64 869.76 154.24 960 512 602.24 869.76 960 960 869.76 602.24 512z' fill='%23fff'/%3E%3C/svg%3E");
  display: inline-block;
  background-size: 45%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .8;
  vertical-align: top
  user-select: none;

.cli_ok
  width: 26px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M369.792 704.32L930.304 128 1024 223.616 369.984 896l-20.288-20.864-.128.128L0 516.8l96.128-93.12 273.664 280.64z' fill='%23fff'/%3E%3C/svg%3E");
  display: inline-block;
  background-size: 45%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .8;
  vertical-align: top
  user-select: none;

.cli_ok:hover
.cli_cancel:hover
.cli_btn:hover
  opacity 1
